<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%--
  Created by IntelliJ IDEA.
  User: shanpengfei
  Date: 2019/2/28
  Time: 5:58 PM
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<c:set var="basePath" value="/gyp"></c:set>

<style>
    .teach-show {
        width: 500px;
        margin: 30px auto 40px auto;
        line-height: 30px;
    }
    .teach-show h1 {
        text-align: center;
        font-size: 24px;
        font-weight: 700;
    }

    .teach-show p {
        text-align: center;
    }
    .teach-show .teach-content {
        padding: 20px 0;
        text-indent: 2em;
    }
</style>

<jsp:include page="../template_header.jsp"></jsp:include>

<div class="teach-show">
    <h1>${teach.title}</h1>
    <p>教程类型：${teach.type==1?'雕刻':teach.type==2?'瓷器':teach.type==3?'编制品':'其他'}</p>
    <p>分享时间：<fmt:formatDate value="${teach.createAt }" pattern="yyyy-MM-dd"/></p>
    <img src="${teach.pic}" width="500">
    <div class="teach-content">${teach.content}</div>

</div>

<jsp:include page="../template_footer.jsp"></jsp:include>
